// 获取parts
export const getParts = (that) => {
    return that.$get("/admin/parts");
};

// 添加parts
export const addParts = (that, obj) => {
    return that.$post("/admin/parts/add", obj);
};

// 修改parts
export const updateParts = (that, obj) => {
    return that.$post("/admin/parts/update", obj);
};

// 删除单个parts
export const deleteParts = (that, obj) => {
    return that.$get("/admin/parts/delete", obj);
};

// 显示展示
export const showParts = (that, obj) => {
    return that.$get("/admin/parts/show", obj);
};

// 批量删除parts
export const batchDelete = (that, obj) => {
    return that.$post("/admin/parts/batchDelete", obj);
};
